package com.junhong.action;

import javax.annotation.Resource;

import com.junhong.entity.Role;
import com.junhong.service.RoleService;

public class RoleAddAction {
	
	private Integer id; // id
	private String roleName; // 名称
	private String roleDescription; // 描述

	@Resource
	private RoleService roleService;

	public void add() {
		Role role = new Role(id, roleName, roleDescription);
		roleService.add(role);
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleDescription() {
		return roleDescription;
	}

	public void setRoleDescription(String roleDescription) {
		this.roleDescription = roleDescription;
	}

}
